package com.erp.bean;

import java.sql.Timestamp;
import java.util.Date;

/**
 * @author lyb
 * 创建员工实体类
 */
public class Emp {
    /**
     * 员工编号
     */
    private int eid;
    /**
     * 员工姓名
     */
    private String ename;
    /**
     * 电话
     */
    private String tel;
    /**
     * 邮箱
     */
    private String email;
    /**
     * 员工密码
     */
    private String pass;
    /**
     * 员工性别
     */
    private String sex;

    /**
     * 年龄
     */
    private int age;

    /**
     * 部门编号
     */
    private int did;
    /**
     * 角色编号
     */
    private int rid;

    public Emp() {
    }

    public Emp(String ename, String tel, String email, String pass, String sex, int age, int did, int rid) {
        this.ename = ename;
        this.tel = tel;
        this.email = email;
        this.pass = pass;
        this.sex = sex;
        this.age = age;
        this.did = did;
        this.rid = rid;
    }

    public Emp(int eid, String ename, String tel, String email, String pass, String sex, int age, int did, int rid) {
        this.eid = eid;
        this.ename = ename;
        this.tel = tel;
        this.email = email;
        this.pass = pass;
        this.sex = sex;
        this.age = age;
        this.did = did;
        this.rid = rid;
    }

    public Emp(String ename, String tel, String email, String pass, String sex) {
        this.ename = ename;
        this.tel = tel;
        this.email = email;
        this.pass = pass;
        this.sex = sex;
    }

    public Emp(String ename, String tel, String email, String pass, String sex, int age) {
        this.ename = ename;
        this.tel = tel;
        this.email = email;
        this.pass = pass;
        this.sex = sex;
        this.age = age;
    }

    @Override
    public String toString() {
        return "Emp{" +
                "eid=" + eid +
                ", ename='" + ename + '\'' +
                ", tel='" + tel + '\'' +
                ", email='" + email + '\'' +
                ", pass='" + pass + '\'' +
                ", sex='" + sex + '\'' +
                ", age=" + age +
                ", did=" + did +
                ", rid=" + rid +
                '}';
    }

    public int getEid() {
        return eid;
    }

    public void setEid(int eid) {
        this.eid = eid;
    }

    public String getEname() {
        return ename;
    }

    public void setEname(String ename) {
        this.ename = ename;
    }

    public String getTel() {
        return tel;
    }

    public void setTel(String tel) {
        this.tel = tel;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getPass() {
        return pass;
    }

    public void setPass(String pass) {
        this.pass = pass;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public int getDid() {
        return did;
    }

    public void setDid(int did) {
        this.did = did;
    }

    public int getRid() {
        return rid;
    }

    public void setRid(int rid) {
        this.rid = rid;
    }
}

